.PHONY:all
all:Server Client

Server:Main.cpp
	g++ -o $@ $^ -std=c++17 -ljsoncpp
Client:TcpClient.cpp
	g++ -o $@ $^ -std=c++17 -ljsoncpp
.PHONY:clean
clean:
	rm -rf Server Client output
.PHONY:output
output:
	mkdir -p output/bin
	mkdir -p output/lib
	mkdir -p output/conf
	mkdir -p output/log
	cp Server output/bin
	cp Client output/bin
	ln -s output/bin/Server run